﻿#region | Copyright © 2556 |

/*
##########################################################################
	Author By : Siriwat Suananpornpanit
	DateTime : 2556/08/30
##########################################################################
*/

#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Web.Core
{
    public sealed class ResourceTools
    {
        #region Resources

        public static string GetResource(string resourceName = "Resource"
            , string resourceKey = null)
        {
            string r = HttpContext.GetGlobalResourceObject(resourceName, resourceKey) as string;
            if (r == null)
                return resourceKey;
            return r;
        }

        #endregion
    }
}